package com.zjw.project.meeting.controller;

import com.zjw.entity.po.MeetingType;
import com.zjw.service.MeetingTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("meetingType")
@Slf4j
public class MeetingTypeController {

    @Autowired
    private MeetingTypeService meetingTypeService;

    @ResponseBody
    @RequestMapping("loadMeetingType")   //meetingType/loadMeetingType
    public List<MeetingType> meetingType(){
        return meetingTypeService.selectListByStatusAndSortNumAsc();
    }

}
